package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.SetMeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SetMealMapper {

    Page<SetMeal> findByCondition(@Param("queryString") String queryString);

    void saveSetMealAndGroup(@Param("setMealId")Integer setMealId,@Param("checkGroupId") Integer checkGroupId);

    void save(SetMeal setMeal);

    List<Integer> findGroupIdBySetMealId(@Param("setMealId")Integer setmealId);

    SetMeal findById(@Param("setMealId")Integer setmealId);

    long count(@Param("setMealId")Integer setMealId);

    void delete(@Param("setMealId")Integer setMealId);

    void update(SetMeal setMeal);

    void deleteSetMealAndGroupBySetMealId(@Param("setMealId")Integer setMealId);

    List<SetMeal> findAll();

}
